<template>
  <div>
    <el-card>
      <el-tabs>
        <el-tab-pane label="角色管理">
          <el-button type="success" size="medium">新增角色</el-button>
          <el-table :data="dataList">
            <el-table-column prop="name" label="名称" />
            <el-table-column prop="description" label="描述" />
            <el-table-column label="操作">
              <el-button type="success" size="mini">分配权限</el-button>
              <el-button type="primary" size="mini">编辑</el-button>
              <el-button type="danger" size="mini">删除</el-button>
            </el-table-column>
          </el-table>
          <el-col type="flex" justify="center" align="middle">
            <el-pagination layout="prev,pager,next" :total="50" />
          </el-col>
        </el-tab-pane>
        <el-tab-pane label="公司信息">
          <el-form>
            <el-form-item label="公司名称" label-width="200px">
              <el-input disabled style="width: 400px;" />
            </el-form-item>
            <el-form-item label="公司地址" label-width="200px">
              <el-input disabled style="width: 400px;" />
            </el-form-item>
            <el-form-item label="邮箱" label-width="200px">
              <el-input disabled style="width: 400px;" />
            </el-form-item>
            <el-form-item label="备注" label-width="200px">
              <el-input :rows="5" type="textarea" disabled style="width: 400px;" />
            </el-form-item>
          </el-form>
        </el-tab-pane>
        <el-tab-pane label="tree树型结构">
          <!-- <el-tree :data="treeData" :props="{label:'title'}" default-expand-all="" /> -->
          <el-tree :data="treeData" default-expand-all>
            <template v-slot="scoped">
              {{ scoped.data.title }}
            </template>
          </el-tree>
        </el-tab-pane>
      </el-tabs>
    </el-card>
    <!-- el-tree -->

  </div>
</template>

<script>
export default {
  data() {
    return {
      dataList: [{ name: '系统管理员', description: '描述描述描述描述' }, { name: '系统管理员', description: '描述描述描述描述' }, { name: '系统管理员', description: '描述描述描述描述' }, { name: '系统管理员', description: '描述描述描述描述' }, { name: '系统管理员', description: '描述描述描述描述' }],
      treeData: [
        {
          title: '董事长'
        },
        {
          title: '懂事早'
        },
        {
          title: '开发部门',
          children: [{ title: '前端' }, { title: '后端' }]
        },
        {
          title: '直播部门',
          children: [{ title: '直播' }, { title: '助播' }]
        }
      ]
    }
  }
}
</script>

<style>

</style>
